import Vue from 'vue'
import axios from 'axios'

Vue.use(axios)
//
axios.defaults.baseURL='http://localhost:9999'
Vue.prototype.$axios = axios

axios.interceptors.request.use(
    config=>{
      config.headers.common["auth"] = window.sessionStorage.getItem("token")
      console.log("dddd",config.headers);
      return config;
    },
    error=>{
      return Promise.reject(error);
    }
  )